/* static/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 繁星背景效果 */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -3;
}

#stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-size: 200px 100px;
    animation: zoom 5s infinite;
}

#stars2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -2;
}

#stars2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(1px 1px at 40px 60px, #fff, transparent),
        radial-gradient(1px 1px at 120px 10px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 160px 70px, #ddd, transparent),
        radial-gradient(1px 1px at 40px 110px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 190px 40px, #eee, transparent);
    background-size: 250px 150px;
    animation: zoom 10s infinite;
}

#stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

#stars3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(1px 1px at 70px 10px, #fff, transparent),
        radial-gradient(2px 2px at 140px 90px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 10px 50px, #ddd, transparent),
        radial-gradient(1px 1px at 110px 130px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 180px 120px, #eee, transparent);
    background-size: 300px 200px;
    animation: zoom 15s infinite;
}

@keyframes zoom {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.title {
    font-size: 2.8rem;
    margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(255, 105, 180, 0.8),
                 0 0 30px rgba(255, 20, 147, 0.6),
                 0 0 40px rgba(138, 43, 226, 0.4);
    color: #fff;
    animation: titleGlow 3s ease-in-out infinite alternate;
    font-family: 'Georgia', serif;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 10px #fff,
                     0 0 20px #fff,
                     0 0 30px #e60073,
                     0 0 40px #e60073;
    }
    to {
        text-shadow: 0 0 15px #fff,
                     0 0 25px #ff4da6,
                     0 0 35px #ff4da6,
                     0 0 45px #ff4da6;
    }
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(255, 105, 180, 0.4),
                0 0 100px rgba(138, 43, 226, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 25px;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.image-container {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: absolute;
    top: 0;
    left: 0;
}

.image-container::after {
    content: "点击放大";
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover::after {
    opacity: 1;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 50px 30px 30px;
    transform: translateY(100%);
    transition: transform 0.6s ease;
    text-align: center;
    z-index: 3;
}

.image-container:hover .overlay {
    transform: translateY(0);
}

.text-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.8);
    animation: slideInUp 0.5s ease-out 0.3s both;
}

.text-content p {
    font-size: 1.2rem;
    color: #f8f8f8;
    opacity: 0.9;
    animation: slideInUp 0.5s ease-out 0.5s both;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2.2rem;
    padding: 18px 22px;
    cursor: pointer;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    z-index: 10;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.nav-btn:hover {
    background: rgba(255, 105, 180, 0.4);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.8);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

.indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.indicator.active {
    background: linear-gradient(45deg, #ff69b4, #9370db);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.8);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* 放大模式下的样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 80vw;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(255, 105, 180, 0.8),
                0 0 100px rgba(138, 43, 226, 0.6);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-title {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 10px;
    max-width: 80%;
}

.modal-title h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
}

.modal-title p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 2.2rem;
    }

    .image-container {
        height: 450px;
    }

    .text-content h2 {
        font-size: 1.6rem;
    }

    .text-content p {
        font-size: 1rem;
    }

    .nav-btn {
        font-size: 1.8rem;
        padding: 14px 18px;
    }

    .prev-btn {
        left: 15px;
    }

    .next-btn {
        right: 15px;
    }

    /* 移动端放大模式 */
    .modal-content {
        width: 95vw;
        height: 95vh;
    }

    .modal-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .modal-prev {
        left: 15px;
    }

    .modal-next {
        right: 15px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }

    .image-container {
        height: 350px;
    }

    .text-content h2 {
        font-size: 1.4rem;
    }

    .text-content p {
        font-size: 0.9rem;
    }

    .nav-btn {
        font-size: 1.5rem;
        padding: 12px 15px;
    }

    .indicator {
        width: 12px;
        height: 12px;
    }

    .modal-title {
        bottom: 15px;
        padding: 8px 15px;
    }

    .modal-title h3 {
        font-size: 1.2rem;
    }

    .modal-title p {
        font-size: 0.8rem;
    }
}